---
title: "get component child · RUAL Documentation"
description: "Grabs the current child component of the component"
canonical: https://docs.rual.nl/block-types/state actions/state_component_get_child
language: en
---

# get component child

This block is part of the [`state actions`](https://docs.rual.nl/block-types/state%20actions) group and was last modified in core [`v13.0.6`](https://docs.rual.nl/core-versions/130006).

Grabs the current child component of the component

- component required `state`

- index required `number` Grab child component at index

- found `condition` Returns `true` if this index has a component

- state `state` Returns the currents component child for the given index

A typical wiring for [get component child](https://docs.rual.nl/block-types/state%20actions/state_component_get_child): [number](https://docs.rual.nl/block-types/number/number_default) feeds the `index` pin; the `child_exists` out pin feeds [branch](https://docs.rual.nl/block-types/flow/branch).

![Studio canvas example for the get component child block: typical wiring for get component child.](https://docs.rual.nl/canvas-examples/state_component_get_child.png)

### Version history

Introduced in [`v13.0.6`](https://docs.rual.nl/core-versions/130006).
